import React, { ReactElement } from 'react';
import { View } from 'react-native';
import CustomText from '../../../../components/Text';

import styles from './style';

interface ContentProps {
  name: string;
  detail: string;
}

export default ({ name, detail }: ContentProps): ReactElement => {
  return (
    <View style={styles.content}>
      <CustomText style={styles.name}>{name}</CustomText>
      <CustomText style={styles.detail}>{detail}</CustomText>
    </View>
  );
};
